package com.jeecg.guangdian.entity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ChartReport {
	
	private Map<String,String> title = new HashMap<>();
	private Map<String,String> tooltip = new HashMap<>();
	private Map<String,Object>  legend = new HashMap<>();
	private Map<String,Object> toolbox = new HashMap<>();
	private boolean calculable = false;
	private List<Map<String,Object>> xAxis = new ArrayList<>();
	private List<Map<String,String>> yAxis = new ArrayList<>();
	private  List<Map<String,Object>> series =  new ArrayList<>();
	public ChartReport() {
		this.title.put("text","");
		this.title.put("subtext","");
		this.tooltip.put("show","false");
		this.tooltip.put("trigger","axis");
		this.toolbox.put("show","false");
		Map<String,String> yAxisMap = new HashMap<>();
		yAxisMap.put("type","value");
		this.yAxis.add(yAxisMap);
	}

	public Map<String, String> getTitle() {
		return title;
	}

	public void setTitle(Map<String, String> title) {
		this.title = title;
	}

	public Map<String, String> getTooltip() {
		return tooltip;
	}

	public void setTooltip(Map<String, String> tooltip) {
		this.tooltip = tooltip;
	}

	public Map<String, Object> getLegend() {
		return legend;
	}

	public void setLegend(Map<String, Object> legend) {
		this.legend = legend;
	}

	public Map<String, Object> getToolbox() {
		return toolbox;
	}

	public void setToolbox(Map<String, Object> toolbox) {
		this.toolbox = toolbox;
	}

	public boolean isCalculable() {
		return calculable;
	}

	public void setCalculable(boolean calculable) {
		this.calculable = calculable;
	}

	public List<Map<String, Object>> getxAxis() {
		return xAxis;
	}

	public void setxAxis(List<Map<String, Object>> xAxis) {
		this.xAxis = xAxis;
	}

	public List<Map<String, String>> getyAxis() {
		return yAxis;
	}

	public void setyAxis(List<Map<String, String>> yAxis) {
		this.yAxis = yAxis;
	}

	public List<Map<String, Object>> getSeries() {
		return series;
	}

	public void setSeries(List<Map<String, Object>> series) {
		this.series = series;
	}
}
